(function(window, undefined){
  'use strict';
  var ns = window.beneath = window.beneath || {};

  function StoneWall(){
    this.wallTile = null;
    this.isReveiled = false;
    this.index = _.sample([0, 1, 2]);
    this.health = 100 * Math.random() + 100;
    this.destroy = function(){};
  }


  function CoalWall(){
    this.wallTile = null;
    this.isReveiled = false;
    this.index = _.sample([3, 4, 5]);
    this.health = 100 * Math.random() + 100;

    this.destroy = function(game, x, y) {
      for(var i = 0 ; i < 2 + Math.random() * 3 | 0 ; i ++){
        game.createCoal(x * 16 + 8, y * 19 + 8);
      }
    };
  }




  ns.walls = {};
  ns.walls.StoneWall = StoneWall;
  ns.walls.CoalWall = CoalWall;
  
})(window);